﻿using D.UtilOrm;

namespace D.WebApi.Core.Models
{
    public class AppConfig
    {
        /// <summary>
        /// 是否开启Redis缓存
        /// </summary>
        public bool StartRedisCache { get; set; }

        /// <summary>
        /// 数据库配置
        /// </summary>
        public RedisConfig? RedisConfig { get; set; }

        /// <summary>
        /// 数据库配置
        /// </summary>
        public DbConfig? DbConfig { get; set; }

        /// <summary>
        /// 数据库配置
        /// </summary>
        public IdentityServerStoreOptions? IdentityServerStoreOptions { get; set; }

        /// <summary>
        /// 站点配置
        /// </summary>
        public SiteConfig? SiteConfig { get; set; } = new SiteConfig();
    }

}
